package com.tiancheng.trade.payment.convert;

import com.tiancheng.trade.commom.core.data.notify.PaySubFlowResultMsgBO;
import com.tiancheng.trade.payment.bo.notify.PayNotifySubBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: kellen
 * @Description: 消息通知转换
 * @Date: create in 2024/12/11 09:17
 */
@Mapper(componentModel = "spring")
public interface NotifyConvert {
    NotifyConvert INSTANCE = Mappers.getMapper(NotifyConvert.class);

    PaySubFlowResultMsgBO convert(PayNotifySubBO payNotifySubBO);

    List<PaySubFlowResultMsgBO> convert(List<PayNotifySubBO> payNotifySubBOs);
}
